package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.zzyl.nursing.domain.AlertRule;

/**
 * alertRuleMapper接口
 * 
 * @author dsr
 * @date 2025-10-17
 */
@Mapper
public interface AlertRuleMapper extends BaseMapper<AlertRule>
{
    /**
     * 查询alertRule
     * 
     * @param id alertRule主键
     * @return alertRule
     */
    public AlertRule selectAlertRuleById(Long id);

    /**
     * 查询alertRule列表
     * 
     * @param alertRule alertRule
     * @return alertRule集合
     */
    public List<AlertRule> selectAlertRuleList(AlertRule alertRule);

    /**
     * 新增alertRule
     * 
     * @param alertRule alertRule
     * @return 结果
     */
    public int insertAlertRule(AlertRule alertRule);

    /**
     * 修改alertRule
     * 
     * @param alertRule alertRule
     * @return 结果
     */
    public int updateAlertRule(AlertRule alertRule);

    /**
     * 删除alertRule
     * 
     * @param id alertRule主键
     * @return 结果
     */
    public int deleteAlertRuleById(Long id);

    /**
     * 批量删除alertRule
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAlertRuleByIds(Long[] ids);
}
